package pl.com.hme.kody.pocztowe.data;

import java.util.AbstractCollection;
import java.util.ArrayList;

public class SearchResults {
    private ArrayList<PointOfInterest> mPoiSet = new ArrayList<PointOfInterest>(1);
    private ArrayList<String> mPages = new ArrayList<String>(1);
    private String mStatus = OK;
    
    public static final String OK = "OK";
    public static final String NO_RESULTS = "NO_RESULTS";
    public static final String ERROR = "ERROR";
    
    public void addPoi(PointOfInterest poi){
        mPoiSet.add(poi);
    }
    
    public void addPage(String pageAddress){
        mPages.add(pageAddress);
    }
    
    public boolean hasPages(){
        return mPages.size()>0 ? true : false;
    }
   
    public AbstractCollection<PointOfInterest> getPois(){
        return mPoiSet;
    }
    
    public String getStatus(){
        return mStatus;
    }
    
    public void setStatus(String status){
        mStatus = status;
    }
}
